import request from '@/utils/request'

// 获取课程数量
export const getCourseNumber = () => {
    return request({
      url: '/home/getCourseNumber',
      method: 'get'
    })
}

// 获取注册人数
export const getRegisterNumber = () => {
    return request({
      url: '/home/getRegisterNumber',
      method: 'get'
    })
}

// 获取学生人数
export const getStudentNumber = () => {
    return request({
      url: '/home/getStudentNumber',
      method: 'get'
    })
}

// 获取老师人数
export const getTeacherNumber = () => {
    return request({
      url: '/home/getTeacherNumber',
      method: 'get'
    })
}

// 统计注册用户（折线图）
export const getRegisterNumberChart = () => {
    return request({
      url: '/home/getRegisterNumberChart',
      method: 'get'
    })
}

// 统计试听课（折线图）
export const getStudentNumberChart = () => {
    return request({
      url: '/home/getStudentNumberChart',
      method: 'get'
    })
}

